﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeBehind="Modify.aspx.cs" Inherits="Things.ThingsWeb.Goods.Modify" Title="修改页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" language="javascript">

        function changeImg(obj, width, height) {
            if (obj.width > width || obj.height > height) {
                var scale;
                var scale1 = obj.width / width;
                var scale2 = obj.height / height;
                if (scale1 > scale2) {
                    scale = scale1;
                } else {
                    scale = scale2;
                }
                obj.width = obj.width / scale;
                obj.height = obj.height / scale;
            } // if
        } // changeImg

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
        <tr>
            <td class="tdbg">
                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                    <tr>
                        <td height="25" width="30%" align="right">
                            商品名称 ：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtGoodsName" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            商品图片 ：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:FileUpload ID="FileUpload1" runat="server" />
                            <asp:Image ID="Image1" runat="server"/>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            商品分类 ：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:DropDownList ID="ddlGoodsCategory" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            商品品牌 ：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtGoodsBrand" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            商品重量 ：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtGoodsWeight" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            商品包装 ：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtGoodsPackage" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            保质期 ：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtShelfLife" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            规格 ：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtType" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            数量 ：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtCount" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            生产批次 ：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtShengChanPiCi" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                      <tr>
                        <td height="25" width="30%" align="right">
                            储藏方法 ：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtChuChangFangFa" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                      <tr>
                        <td height="25" width="30%" align="right">
                            生产许可证编号 ：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtShengChanXuKeZhengBianHao" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                      <tr>
                        <td height="25" width="30%" align="right">
                            产品标准号 ：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtChanPinBiaoZhunHao" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="tdbg" align="center" valign="bottom">
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" class="inputbutton"
                    onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'">
                </asp:Button>
                <asp:Button ID="btnCancle" runat="server" Text="取消" OnClick="btnCancle_Click" class="inputbutton"
                    onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'">
                </asp:Button>
            </td>
        </tr>
    </table>
    <asp:Label ID="lblGoodsID" runat="server" Visible="false"></asp:Label>
</asp:Content>
<%--<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceCheckright" runat="server">
</asp:Content>--%>
